{include file="public/_meta" /}
<body>
<style>
    .required_b{
        color: red;
    }
</style>
<div class="wrapper">

    {include file="public/_header" /}

    <!-- Sidebar -->
    {include file="public/_menu" /}
    <!-- End Sidebar -->

    <div class="main-panel">

        <div class="content">
            <div class="page-inner">

                <!-- 面包屑 -->
                {include file="public/_page_header" /}

                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <div class="d-flex align-items-center">
                                    <h4 class="card-title">账户城市线索统计</h4>
                                </div>

                                <form class="row">

                                    <div class="col-md-6 col-lg-2">
                                        <div class="form-group">
                                            <select class="form-control" name="adv_id">
                                                <option value="">全部账户</option>
                                                <option value="9999" {if condition="$adv_id eq '9999'"}selected{/if}>【手动添加的线索】</option>
                                                {volist name="accounts" id="vo"}
                                                <option value="{$vo.adv_id}" {if condition="$vo.adv_id eq $adv_id"}selected{/if}>{$vo.acc_name}</option>
                                                {/volist}
                                            </select>
                                        </div>
                                    </div>

                                    <div class="col-md-6 col-lg-2">
                                        <div class="form-group">
                                            <button type="submit" class="btn btn-primary">查询</button>
                                            <a href="{:url('stat/clue')}" class="btn btn-info" style="color: white;position: absolute;left: 110px;">重置</a>
                                        </div>
                                    </div>

                                </form>

                            </div>


                            <div class="card-body">

                                <div class="table-responsive">
                                    <table id="add-row" class="display table table-striped table-hover" >
                                        <thead>
                                        <tr>
                                            <th>投放账号ID</th>
                                            <th>投放账户</th>
                                            <th>城市</th>
                                            <th>线索接受量</th>
                                            <th>线索分发量</th>
                                            <th>剩余线索量</th>
                                        </tr>
                                        </thead>

                                        <tbody>

                                        {volist name="infos" id="vo"}
                                        <tr>
                                            <td>{$vo.adv_id}</td>
                                            <td>{$vo.acc_name}</td>
                                            <td>{$vo.city}</td>
                                            <td>{$vo.clue_accept}</td>
                                            <td>{$vo.clue_push}</td>
                                            <td>{$vo.clue_accept - $vo.clue_push}</td>
                                        </tr>
                                        {/volist}

                                        </tbody>
                                    </table>

                                    <!-- 分页 (调取通用方法)-->
                                     <div class="layui-box layui-laypage layui-laypage-molv">{:pagination($infos)}</div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>

        {include file="public/_footer" /}


    </div>



</div>

{include file="public/_js" /}

</body>

<!--请在下方写此页面业务相关的脚本-->

</html>




























